package com.wtb.javatool.constant.evaluation;

/**
 * @author lx
 * @version 1.1.0
 * @date 2020/9/22
 * 是否是驱动式教学
 */
public enum ProjectDrivenTeachingType {

    /**
     * 是
     */
    YES("是"),

    /**
     *否
     */
    NO("否");

    private final String value;
    ProjectDrivenTeachingType(String value) {
        this.value = value;
    }

    public String value() {
        return value;
    }

    public static ProjectDrivenTeachingType valueOf(Integer value) {
        for(ProjectDrivenTeachingType item : ProjectDrivenTeachingType.values()) {
            if(item.value.equals(value)) {
                return item;
            }
        }
        throw new IllegalArgumentException(String.format("[%s]中根据常量值[%s]找不到对应的枚举常量",
                ProjectDrivenTeachingType.class.getName(), value));
    }
}
